From 49e26be62428718ed6d596bb37d96289686fe2f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=3D=3FUTF-8=3Fq=3FFabi=3DC3=3DA1n=3D20Ezequiel=3D20Gallina?= =?utf8?q?=3F=3D?= Date: Thu, 17 May 2012 00:03:45 -0300 Subject: [PATCH] Revert "Merge pull request #83 from tkf/empty-triple-quote" This reverts commit f4d086427343eb0b8bc91355388d2437c568b1f6, reversing changes made to 8f697fd2ef23a9e1d9a06ac8ca419d76ccedb27d. While the fix worked with empty triple quoted strings it broke simpler cases like these: """ def someting(a, b, c): " """ or ''' def someting(a, b, c): ' ''' Another approach is needed for giving triple quoted string the correct syntax. --- lisp/progmodes/python.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4b9a29845c5..2da5337b8c5 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -465,7 +465,6 @@ This variant of `rx' supports common python named REGEXPS." ;; string delimiters. Fixme: Is there a better way? ;; First avoid a sequence preceded by an odd number of backslashes. `((,(concat "\\(?:\\([RUru]\\)[Rr]?\\|^\\|[^\\]\\(?:\\\\.\\)*\\)" ;Prefix. - "\\(?:''''''\\|\"\"\"\"\"\"\\)" ; Empty triple-quote "\\(?:\\('\\)'\\('\\)\\|\\(?2:\"\\)\"\\(?3:\"\\)\\)") (3 (python-quote-syntax))))) -- 2.30.2